import numpy as np
import matplotlib.pyplot as plt

plt.rcParams['font.sans-serif'] = ['SimHei']
plt.rcParams['axes.unicode_minus'] = False

x = np.arange(10, 210, 10)
y = np.array([0.5, 2.0, 4.4, 7.9, 12.3, 17.4, 24.1, 31.5, 39.9, 49.2, 59.5, 70.8, 83.1, 96.4, 110.7,
              126.0, 142.2, 159.4, 177.6, 196.8])

plt.scatter(x, y, s=50, alpha=0.9, linewidths=0.3)
plt.xlabel('速度(km/h)')
plt.ylabel('制动距离(m)')
plt.xticks(x)
plt.title('汽车制动距离图', pad=10)
plt.grid(True, linewidth=0.5)
plt.show()